package org.example.webserver.service;

import org.example.webserver.pojo.Commodity;

import java.util.List;

public interface CommodityService {
    List<Commodity> showAllCommodity();
    List<Commodity> searchCommodity(String name);
    List<Commodity> searchCommodityByMerchant(String merchant);
    Commodity addCommodity(Commodity commodity);
    Commodity delCommodity(Commodity commodity);
    Commodity editCommodity(Commodity commodity);
}
